{% extends "projects/base.html" %}

{% load i18n %}
{% load project_tags %}

{% block head_title %}Project{% endblock %}

{% block tab_id %}id="rtab_project"{% endblock %}

{% block body %}
        <div class="right_panel">
            <div class="project">
                <h2>{% trans "Projects" %} <a href="{% url add_project %}"><img src="{{ MEDIA_URL }}icons/add.png" alt="Add" title="Add a new project"/></a></h2>
                <table width="100%">
		  <tr>
		    <th>Code</th>
		    <th>Title</th>
		    <th>Status</th>
		  </tr>

                    {% for project in object_list %}
                       <tr>
			 <td>{{ project.code }}</td>
			 <td>
                           <a href="/project/{{ project.id }}"><div class="name">{{ project.title }}</div></a>
			 </td>
			 <td>
			   {% project_status project %}
			 </td>
		       </tr>
                    {% endfor %}
                </table>
            </div>
        </div>
{% endblock %}
